<?php

namespace App\Common\WX\Api\qr;


use App\Common\WX\Api\ApiBase;
use App\Common\WX\Api\MiniProgram;

class Qr
{
    public function __construct($app)
    {
        $this->pub_app = $app;
    }

    private $pub_app;

    /**
     * @return ApiBase
     */
    protected function getApp()
    {
        return $this->pub_app;
    }

    /**
     * 是小程序
     * @return bool
     */
    protected function isWxapp()
    {
        if (is_a($this->pub_app, MiniProgram::class))
        {
            return true;
        }


        return false;
    }


    public function funcGenQr()
    {
        
    }
}